python program to check prime number